<template>
  <div class="page-cell">
    <div class="row">试飞科目：{{item.subject}}</div>
    <div class="row" v-if="pointSeen">执行试验点数：{{item.points}}</div>
    <div class="row">起飞时间：{{item.takeOffTime}}</div>
    <div class="row">着陆时间：{{item.landingTime}}</div>
    <div class="row">起飞机场：{{item.takeOffAirport}}</div>
    <div class="row">着陆机场：{{item.landingAirport}}</div>
    <div class="row">空中飞行时间：{{item.flightTime}}分钟</div>
    <div class="row">开关车试验时间：{{item.turnOnAndOffTime}}分钟</div>
    <div class="row">试飞员：{{item.pilot}}</div>
    <div class="row">试飞工程师：{{item.engineer}}</div>
  </div>
</template>

<script>
  export default {
    name: 'InfoDetail',
    props: ['item'],
    data () {
      return {
        pointSeen: true,
        pilotSeen: true,
        enSeen: true,
      }
    },
    created () {

      console.log('creta')
      console.log(this.pointSeen)
      console.log(this.item)

      console.log(this.item.points === '')

      if (this.item.points === '') {
        this.pointSeen=false
      }
      // this.pilotSeen = (!this.item.pilot === '')
      // this.enSeen = (!this.item.engineer === '')
      console.log('creta444')

    }
  }
</script>

<style scoped>

</style>
